package com.example.service.impl;

import com.example.pojo.WorkExperience;
import com.example.mapper.WorkExperienceMapper;
import com.example.service.IWorkExperienceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 工作经历表 服务实现类
 * </p>
 *
 * @author wsl
 * @since 2022-04-13
 */
@Service
public class WorkExperienceServiceImpl extends ServiceImpl<WorkExperienceMapper, WorkExperience> implements IWorkExperienceService {

    @Autowired
    public WorkExperienceMapper wem;

    @Override
    public void insWorks(List<WorkExperience> wes, Integer rsuid) {
        wes.forEach(w ->{
            w.setResumeId(rsuid);
                wem.insert(w);
        });
    }
}
